the sine and cosine functions